//
//  SYUploadImageNetworking.h
//  YHApp
//
//  Created by -- on 2021/7/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class SYDataModel;


typedef void(^uploadImageSuccessBlock)(SYDataModel *model);

typedef void(^uploadImageFailureBlock)(NSError *error);

typedef void(^uploadImageProgress)(double progress);

@interface SYUploadImageNetworking : NSObject

//获取SYNetworking
+ (SYUploadImageNetworking *)shareSingle;

- (void)initUploadImageUrl:(NSString*)url param:(id)param image:(UIImage *)image successBlock:(uploadImageSuccessBlock)successBlock failureBlock:(uploadImageFailureBlock)failureBlock progressBlock:(uploadImageProgress)progressBlock;

- (void)uploadDataGETUrl:(NSString*)url param:(id)param successBlock:(uploadImageSuccessBlock)successBlock failureBlock:(uploadImageFailureBlock)failureBlock;

@end

NS_ASSUME_NONNULL_END
